import request from '@/utils/request'
//供货商列表
export function getSupplyList() {
	return request({
		url: '/system/user/getUserByRoleCode/' + roleKey,
		method: 'get'
	})
}

export function getGameList(params) {
	return request({
		url: `account/account/getGameType`,
		method: 'get',
    params
	})
}
//获取终端供货商
export function getCmdSupplyList() {
	return request({
		url: '/system/info/supplyIdList',
		method: 'get'
	})
}

// 获取接口配置的供货商 config
export function getAllSupliar(data) {
	return request({
		url: `/account/push/getAllSupliar`,
		method: 'get',
		params: data
	})
}
// 编辑接口配置的供货商
/**id  主键id
creates   勾选的供货人ids */
export function updateAupliar(data) {
	return request({
		url: `/account/push/updateAupliar`,
		method: 'post',
		data
	})
}
export function delAcount(id, configId) {
	return request({
		url: '/out/outDel/' + id + '/' + configId,
		method: 'get'
	})
}

// 查询游戏账号详细
export function getInfo(id) {
	return request({
		url: '/system/info/' + id,
		method: 'get'
	})
}
// 修改游戏账号
export function updateInfo(data) {
	return request({
		url: '/system/info',
		method: 'put',
		data: data
	})
}
// 获取该供货商分配的接口渠道 createId
export function selectAllConfigBySup(data) {
	return request({
		url: `/account/push/selectAllConfigBySup`,
		method: 'get',
		params: data
	})
}
// 编辑编辑上货渠道
/**createId  供货商ID
configs  商户渠道ids */
export function editConfigBySup(data) {
	return request({
		url: `/account/push/editConfigBySup`,
		method: 'post',
		data
	})
}
export function getMorePrice(data) {
	return request({
		url: `/account/prcie/list`,
		method: 'get',
		params: data
	})
}
// 查询推送给三方的三方id
export function getOutIds(id) {
	return request({
		url: `/goods/info/outId/${id}`,
		method: 'get'
	})
}
//获取供货客服手机号
export function getSupPhoneNumber(data) {
	return request({
		url: `/system/user/getTel`,
		method: 'get',
		params: data
	})
}
export function auditInfo(id, data) {
	return request({
		url: '/system/info/' + id,
		method: 'put',
		data: data
	})
}
// 推送
export function push(data) {
	return request({
		url: `/out/outAdd`,
		method: 'get',
		params: data
	})
}


// 自动截图验证码上报
export function autoImgTasksendCode(data) {
	return request({
	  url: '/autoImgTask/xs/sendCode',
	  method: 'post',
	  data
	})
  }